package com.zz.framework.core.http.intercept

import android.util.Log
import com.moczul.ok2curl.CurlInterceptor
import com.moczul.ok2curl.logger.Logger
import com.zz.framework.core.utils.LogUtils
import okhttp3.Interceptor

/**
 * Copyright © 2023 stariverpan All rights reserved.
 * 2023/6/30 10:02.
 * @version: V1.0
 */
object Ok2CulInterceptor {
    fun builder(): Interceptor {
        return CurlInterceptor(object : Logger {
            override fun log(message: String) {
                LogUtils.debug("Ok2Curl: $message")
                Log.e("Ok2Curl",message)
            }
        })
    }
}